package com.shop.cereshop.agent.service.voucher;

import com.baomidou.mybatisplus.extension.service.IService;
import com.shop.cereshop.agent.param.voucher.PickVoucherDTO;
import com.shop.cereshop.agent.param.wallet.WalletPayDTO;
import com.shop.cereshop.commons.domain.agent.CereAgentVoucherUser;
import com.shop.cereshop.commons.exception.CoBusinessException;

import javax.validation.Valid;

/**
 * 用户代金券服务接口
 */
public interface AgentVoucherUserService extends IService<CereAgentVoucherUser> {

    Integer pickCity(@Valid PickVoucherDTO pickVoucherDTO) throws CoBusinessException;

    void buyVoucher(WalletPayDTO param, Long agentUserId) throws CoBusinessException;
}
